package com.chenhan.auth.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 菜单
 *
 * @author xyy
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RouterVo {
	private Long id;
	private Long parentId;
	private Integer sort;




	private String name;// 组件名
	private String path;// 路由地址
	private String redirect;
	private String component;// 组件
	private Boolean root;// 根节点

	private MenuMetaVo meta;

	private List<RouterVo> children;


	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	@Builder
	public static class MenuMetaVo {
		private String title;
		private String icon;
		private Boolean ignoreKeepAlive;
		private Boolean hideMenu;
		private Boolean hideChildrenInMenu;


	}


}
